package demo03;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Random;
import java.util.Set;

public class Test {
	public static Set<Integer> trainIndex(int count){
		Set<Integer> train_index=new HashSet<Integer>();
		int trainSplitNum=(int)(count*0.8);
		Random random=new Random();
		while(train_index.size()<trainSplitNum){
			train_index.add(random.nextInt(count));
		}
		return train_index;	
	}
	public static void main(String[] args) {
//		int count=10;
//		Set<Integer> train_index=trainIndex(count);
//		System.out.println(train_index.size());
		HashMap<String,Integer> genresCounts=new LinkedHashMap<String, Integer>();
		String[] genreslist={"Action","Adventure","Animation","Children's","Comedy","Crime","Documentary","Drama",
				"Fantasy","Film-Noir","Horror","Musical","Mystery","Romance","Sci-Fi","Thriller","War","Western"		
				};
	   
		
		for(int i=0;i<genreslist.length;i++){
				System.out.println(genreslist[i]);
				genresCounts.put(genreslist[i], 0);
				System.out.println(genresCounts.toString());
				System.out.println();
			}
	    
	    System.out.println(genresCounts);
	   
	    
	    
	  
	   
	}

}
